﻿@model CdhpyScheduler.Core.JobModel

@using CdhpyScheduler.Core

@{
    Layout = null;
    var job = ViewData["job"] as JobModel;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Modify</title>
    <link href="~/Content/layui/css/layui.css" rel="stylesheet" />
    <script src="~/Content/layui/lay/dest/layui.all.js"></script>
    <style>
        .input-display {
            display: inline-block;
            width: 300px;
        }
    </style>
</head>
<body>
    <div style="width: 650px;padding-top:15px;">
        <form class="layui-form" action="">
            <div class="layui-form-item input-display">
                <label class="layui-form-label">任务名称</label>
                <div class="layui-input-block">
                    <input type="text" name="jobKey_name" value="@job.jobKey_name" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item input-display">
                <label class="layui-form-label">任务所属组</label>
                <div class="layui-input-block">
                    <input type="text" name="jobKey_group" value="@job.jobKey_group" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item input-display">
                <label class="layui-form-label">重复次数</label>
                <div class="layui-input-block">
                    <input type="text" name="repeate_count" value="@job.repeate_count" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item input-display">
                <label class="layui-form-label">方式</label>
                <div class="layui-input-block">
                    <select name="http_method" lay-verify="required">
                        <option value="0">get</option>
                        <option value="1">post</option>
                        <option value="2">put</option>
                        <option value="3">delete</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item input-display" style="position: relative;top:-30px;">
                <label class="layui-form-label">执行方式</label>
                <div class="layui-input-block">
                    <select name="interval_type" lay-verify="required">
                        <option value="@job.interval_type"></option>
                        <option value="1">1（每天）</option>
                        <option value="2">2（每间隔一段时间）</option>
                    </select>
                </div>
            </div>
            <div class="layui-form-item input-display" style="width: 320px">
                <label class="layui-form-label">执行时间</label>
                <div class="layui-input-inline" style="width: 46px;">
                    <input type="text" name="interval_hours" placeholder="时" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline" style="width: 46px;">
                    <input type="text" name="interval_minutes" placeholder="分" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline" style="width: 46px;">
                    <input type="text" name="interval_seconds" placeholder="秒" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item input-display" style="width: 320px;margin-top: -15px">
                <label class="layui-form-label">间隔时间</label>
                <div class="layui-input-inline" style="width: 46px;">
                    <input type="text" name="interval_days1" placeholder="时" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline" style="width: 46px;">
                    <input type="text" name="interval_days2" placeholder="分" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-mid">-</div>
                <div class="layui-input-inline" style="width: 46px;">
                    <input type="text" name="interval_days3" placeholder="秒" autocomplete="off" class="layui-input">
                </div>
            </div>



            <div class="layui-form-item">
                <label class="layui-form-label">Url地址</label>
                <div class="layui-input-block" style="width: 495px;">
                    <input type="text" name="url" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="@job.url">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-block" style="width: 495px;">
                    <textarea name="remark" placeholder="请输入内容" class="layui-textarea">@job.remark</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 48%">
                    <button class="layui-btn" lay-submit lay-filter="formDemo">保存</button>
                </div>
            </div>
        </form>
    </div>
</body>
</html>
<script type="text/javascript">

</script>